package com.yonyou.pmclouds.workquality.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.inspectitem.entity.InspectItemVO;
import com.yonyou.pmclouds.picture.entity.PictureVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@Table(name = "pmbd_workqualitydetail")
public class WorkqualityDetailVO extends SuperVO {

    @Size(max = 50)
    @NotNull
    private String checkcode;
    @Size(max = 50)
    @NotNull
    private String checkitem;
    private String checkdescription;
    private Boolean needphoto;
    private Boolean needmeasurement;
    private String pkWorkquality;
    @Id
    private String pkWorkqualitydetail;

    @Column(name="creator",updatable=false)
    private String creator;
    @Column(name="creationtime",updatable=false)
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    @Transient
    private String key;
    /**
     * 启用状态（0：停用，1：启用）
     */
    private byte enableStatus;

    public String getKey() {
        return pkWorkqualitydetail;
    }

    /**
     * 示例照片
     */
    @Transient
    private PictureVO[] examplePictures;

    @Transient
    private Double[] measuredData;

    // 检查结果：合格、不合格、不适用
    @Transient
    private String checkResult;

}
